package com.foreveross.bsl.system.model.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;


/**
 * @description
 *
 * @author Wangyi
 * @version v1.0
 *
 * @2013-7-4
 *
 */
@Document
public class CloudFunction extends Entity{

	@Id
	private String id;
	
	@Field
	private String code;
	
	@Field
	private String name;
	
	@Field
	private String description;
	
	@Field
	private String icon;
	
	@Field("page_url")
	private String pageUrl;
	
	@Field("access_url")
	private String[] accessUrl;
	
	@Field
	private boolean enabled;
	
	@Field
	private int order;
	
	@Field("create_time")
	private Date createTime;

	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String[] getAccessUrl() {
		return accessUrl;
	}

	public void setAccessUrl(String[] accessUrl) {
		this.accessUrl = accessUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	/**
	 * @return the pageUrl
	 */
	public String getPageUrl() {
		return pageUrl;
	}

	/**
	 * @param pageUrl the pageUrl to set
	 */
	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}
	
	
}
